# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=pwsafe
pkgver=0.2.0
pkgrel=10
pkgdesc="Password database"
url="http://nsd.dyndns.org/pwsafe/"
#arch="all !aarch64"
license="GPL-2.0"
makedepends="ncurses-dev openssl-dev libxmu-dev readline-dev"
subpackages="$pkgname-doc"
source="http://nsd.dyndns.org/pwsafe/releases/pwsafe-$pkgver.tar.gz"
options="suid"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure --prefix=/usr --mandir=/usr/share/man && make && make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install && chmod u+s "$pkgdir"/usr/bin/pwsafe
}

sha512sums="e8d3684f523f83def6317ef5561a02d1493685cfbda18707644bf335b7f45b1a548aae17a735838d9f6df345ddb17934607162a6e99348df625b34a9ad5f4cf3  pwsafe-0.2.0.tar.gz"
